const mysql = require("mysql2/promise");

// 创建数据库连接池
const pool = mysql.createPool({
    host: "localhost",
    port: 3306,
    user: "root",
    password: "1234567",
    database: "web",
    connectionLimit: 20,
});


// 将数据库连接池对象导出
module.exports = pool;